package com.parfinex.java.phase1.module2.task09;

public class FixedAccount extends Account {
    public FixedAccount() {
    }

    public FixedAccount(int i) {
        super(i);
    }

    @Override
    public double getLixi() {
        //利息 =本金*利率*时间
        return getMoney()*0.03*1;
    }
    public static void main(String[] args){

        Account a1 = new FixedAccount(1000);
        double res=a1.getLixi();

        System.out.println(res);

        Account acc =new FixedAccount();

    }
}

